package com.qtenv.datasync.service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qtenv.datasync.service.entity.DmaFreeze;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * dma冻结数据 Mapper 接口
 * </p>
 *
 * @author CBL
 * @since 2022-08-03
 */
@Mapper
public interface DmaFreezeMapper extends BaseMapper<DmaFreeze> {
    List<DmaFreeze> getDmaSupplyDataList(@Param("tenantId") String tenantId, @Param("areaId") String areaId);

    DmaFreeze getBuildingUsedFlow(@Param("tenantId") String tenantId, @Param("areaId") String areaId,
                                  @Param("startDate") String startDate, @Param("endDate") String endDate);

    List<DmaFreeze> getBuildingHistoryUsedFlow(@Param("tenantId") String tenantId, @Param("areaId") String areaId);

    DmaFreeze getLeakageAssessmentData(@Param("tenantId") String tenantId, @Param("areaId") String areaId, @Param("dataMonth") String dataMonth);

    DmaFreeze getLeakageCompositionData(@Param("tenantId") String tenantId, @Param("areaId") String areaId, @Param("dataMonth") String dataMonth);

    DmaFreeze getLeakageApertureData(@Param("tenantId") String tenantId, @Param("areaId") String areaId, @Param("dataMonth") String dataMonth);

    DmaFreeze getInvestmentAdviceData(@Param("tenantId") String tenantId, @Param("areaId") String areaId, @Param("dataMonth") String dataMonth);

    List<DmaFreeze> getDmaMinNightFlow(@Param("areaId") String areaId, @Param("startDate") String startDate, @Param("endDate") String endDate);
}
